wayland: Set actions on drag
authorMatthias Clasen <mclasen@redhat.com>
Sun, 15 Jul 2018 20:50:37 +0000 (16:50 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 15 Jul 2018 20:52:16 +0000 (16:52 -0400)
We should pass the actions to the newly created
drag in drag_begin.

gdk/wayland/gdkdrag-wayland.c

index 3d9a7a0e7d4371744d5018d19f5492db908d6689..6876bd1e953ed9ce290f8400d7815e0eae338f79 100644 (file)
@@ -372,9 +372,10 @@ _gdk_wayland_surface_drag_begin (GdkSurface         *surface,
   seat = gdk_device_get_seat (device);
 
   drag_wayland = g_object_new (GDK_TYPE_WAYLAND_DRAG,
+                               "surface", surface,
                                "device", device,
                                "content", content,
-                               "surface", surface,
+                               "actions", actions,
                                NULL);
 
   drag = GDK_DRAG (drag_wayland);